<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>注册页面</title>
<style>
  body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #a1c4fd, #c2e9fb); /* 添加渐变背景 */
    margin: 0;
    padding: 20px;
  }
  .container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  h2 {
    text-align: center;
    color: #333;
  }
  form {
    display: flex;
    flex-direction: column;
  }
  .form-control {
    margin-bottom: 10px;
  }
  .form-control label {
    display: block;
    margin-bottom: 5px;
    color: #333;
  }
  .form-control input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
  }
  .form-control button {
    padding: 10px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .form-control button:hover {
    background-color: #4cae4c;
  }
  .login-link {
    margin-top: 10px;
    text-align: center;
    color: #337ab7;
    cursor: pointer;
  }
</style>
</head>
<body>
<div class="container">
  <h2>注册</h2>
  <form action="register" method="POST">
    <div class="form-control">
      <label for="username">账号:</label>
      <input type="text" id="username" name="username" required>
    </div>
    <div class="form-control">
      <label for="password">密码:</label>
      <input type="password" id="password" name="password" required>
    </div>
    <div class="form-control">
      <label for="nickname">昵称:</label>
      <input type="text" id="nickname" name="nickname" required>
    </div>
    <div class="form-control">
      <button type="submit">注册</button>
    </div>
  </form>
  <div class="login-link" onclick="window.location.href='login.html';">已有账号，去登录</div>
</div>

<script src="/js/jquery-3.1.1.js"></script>
</body>
</html>